<%@page import="com.exam.dao.StudentDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<jsp:include page="checkExam.jsp" />
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>在线考试系统</title>
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/style.css">
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/bootstrap3-validation.js"></script>

</head>
<body>

<span class="hide" id="message">${message }</span>
		<div class="container-fuld top">
			<h1><img src="../images/loginsj.png" alt="" /> 在线考试管理系统 </h1>
			<a href="#" class="glyphicon glyphicon-user" >${sessionScope.username }[${sessionScope.student }]</a>
		</div>
			<div class="container  paperMain">
					<div class="alert alert-info">
						考生只有在管理员发布试卷之后才能正常登陆进行考试,
						一旦提交试卷后无法再进入系统答题
					</div>
					<a href="<%=path %>/m/testPaper.action" class="btn btn-info btn-block">点击开始考试</a>
					<a href="<%=path %>/m/examLogout.action" class="btn btn-danger btn-block">退出考试系统</a>
			</div>
			<div class="container-fuld">
				<footer>
					版权所有@在线考试管理系统
				</footer>
			</div>
</body>


<script>
$(function(){
		var message = $("#message");
		if(message.html().length>0){
			alertInfo(message.html());
		}	
		
		
		$(".logout").click(function(){
			location.href="<%=path%>/m/examLogout.action";
		});
	
})

/**
 * 美化的alert提示框
 * 
 */
function alertInfo(msg){
	$(".alertContent").html(msg);
	$("#alertInfo").modal("show");
}
</script>


<!-- 警告框  -->
<div class="modal  fade" data-backdrop="static"  id="alertInfo" style="z-index:9999">
      <div class="modal-dialog">
	      <div class="modal-content">
	      <div class="modal-header" >
	        <h3 class="icon-info" style="font-size:20px;margin:8px auto;"> 提示</h3>
	      </div>
	      <div class="modal-body">
	        <span class="alertContent"></span>
	      </div>
	      <div class="modal-footer">
	        <button class="btn btn-sm btn-danger logout" data-dismiss="modal" aria-hidden="true">关闭</button>
	      </div>
	      </div>
      </div>
 </div>

</html>


